package model;

public class Group {
    private int id;
    private String groupName;
    private int classId;  // 所属班级ID
    private String leader;  // 组长
    private int memberCount;  // 组员数量
    private String description;

    public Group(int id, String groupName, int classId, String leader, int memberCount, String description) {
        this.id = id;
        this.groupName = groupName;
        this.classId = classId;
        this.leader = leader;
        this.memberCount = memberCount;
        this.description = description;
    }

    // Getters and Setters
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }
    public String getGroupName() { return groupName; }
    public void setGroupName(String groupName) { this.groupName = groupName; }
    public int getClassId() { return classId; }
    public void setClassId(int classId) { this.classId = classId; }
    public String getLeader() { return leader; }
    public void setLeader(String leader) { this.leader = leader; }
    public int getMemberCount() { return memberCount; }
    public void setMemberCount(int memberCount) { this.memberCount = memberCount; }
    public String getDescription() { return description; }
    public void setDescription(String description) { this.description = description; }
}
//定义小组信息，包括ID、小组名称、所属班级ID、组长、组员数量和描述。